<!DOCTYPE html>
<%@page session="false" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
	<head>
		<title>文章编辑</title>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<meta name="description" content="文章编辑">
		<meta name="keyword" content="文章,编辑,文章编辑">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/editor.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/icon.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/admin.css"/> 
		<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/hybrid.min.css"/>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/zm.css"/>
		<script type="text/javascript" src="<%=basePath%>resources/script/js/tools/load.js"></script>
		<script type="text/javascript">
			var id = "${id}";
			var classifyId = "${classifyId}";
			var basepath = "<%=basePath%>";
	    	var path = "<%=path%>";
			function timeout(wind,warn){
				setTimeout(function(){
					wind.style.display = "none";
					warn.innerHTML = "";
					warn.setAttribute("class","warn");
				}, 1700);
			}
		</script>
		<script type="text/javascript">
			script.map(["resources/script/js/tools/ajax.js","resources/script/js/tools/vo.js",
			            "resources/script/js/editor/editor.js","resources/script/js/tools/markdown.min.js",
			            "resources/script/js/tools/highlight.min.js","resources/script/js/editor/mat.js"]);
			script.define(0);
			script.define(1);
			script.define(3);
			script.define(2,[0,1]);
			script.define(4);
			script.define(5,[0,1]);
			script.load(0);
			script.load(1);
			script.load(3);
			script.load(4);
		</script>
	</head>
	<body>
		<div class="zm" style="display:none;" id="mat" >
				<form enctype="multipart/form-data" method="POST" name="fileInfo">
					<input type="file" name="pic" vo-m="change:upload" style="display:none"/>
				</form>
				<div class="zm-view" style="line-height:0px;text-align:initial;">
					<span class="zm-close" vo-m="click:close"></span>
					<div class="mat">
						<div class="mat-content" vo-m="click:toggle">
							<div class="loading" name="loading">loading...</div>
						</div>
						<div class="mat-tags">
							<div class="edit" style="display:none">
								<a>(仅兼容H5)</a>
								<span class="ok" name="upload" vo-m="click:selectUpload"></span>
								<span class="disabled" disabled="disabled" name="del" vo-m="click:del"></span>
								<a name="exit" vo-m="click:exit_editor"></a>
							</div>
							<div class="select" style="display:block">
								<span class="disabled" name="select" vo-m="click:select"></span>
								<a name="editor" vo-m="click:editor"></a>
							</div>
						</div>
					</div>
				</div>
				<div class="zm-box"></div>
		</div>
		<script type="text/javascript">
			script.load(5);
		</script>
		<div class="body-content">
			<div class="head opacity">
				<div class="wind" style="display:none;">
					<span class="warn"></span>
				</div>
			</div>
			<div class="ad-tags">
				<div class="tags-title">功能列表</div>
				<a class="menu on" href="<%=basePath%>admin/article">返回文章管理</a>
				<a class="menu" href="javascript:void(0);">日志管理</a>
			</div>
			<div class="ad-content" id="editor">
				<div class="input">
					<div class="title">
						<input type="text" name="title" vo-m="click:enter;blur:blur;change:input">
						<span class="span-check">
							<input name="auto" type="checkbox" vo-m="click:turn" >
							<a>自动生成简介</a>
						</span>
						<span class="span-tag">
							<a vo-m="click:mat">图片素材库</a>
						</span>
					</div>
					<div class="description" >
						<textarea spellcheck="false" name="description" vo-m="click:enter;blur:blur;change:input"></textarea>
					</div>
					<div class="md">
						<textarea spellcheck="false" name="md" vo-m="click:enter;blur:blur;change:md"></textarea>
					</div>
				</div>
				<div class="view"><!-- 展示区 -->
					<div class="click-button" vo-m="click:save" title="还没有保存呢">保存文章</div>
					<span class="span-tag" style="height:30px;line-height:28px;">文章浏览</span>
					<div class="content" name="content">
						<pre></pre>
					</div>
				</div>
			</div>
			<script type="text/javascript">
				script.load(2);
			</script>
		</div>
	</body>
</html>
